<?php


use think\Route;

//默认
Route::get("/","Index/home");//显示基本信息

Route::miss("Index/not_found");

// 基础模块 
Route::get("api/url/info","api.Url/info");// url 配置下发

//通用模块  验证码 相关

Route::get("api/captcha/image","api.Captcha/image");//显示验证码
Route::post("api/captcha/imageInfo","api.Captcha/image_info");//获取验证码 地址信息
Route::post("api/captcha/apply","api.Captcha/apply");//校验验证码 获取授权信息

//====================================用户相关====================================================
Route::get("api/v1/registerCode", "api.Login/get_register_code");//用户注册获取验证码
Route::get("api/v2/registerCode", "api.Login/get_register_code_v2");//用户注册获取验证码v2接口
Route::get("api/v3/registerCode", "api.Login/get_register_code_v3");//用户注册获取验证码v3接口
Route::get("api/v4/registerCode", "api.Login/get_register_code_v4");//用户注册获取验证码v4接口

Route::post("api/v1/registerUser", "api.Login/register");//用户注册
Route::post("api/v2/registerUser", "api.Login/register_v2");//v2版用户注册
Route::post("api/v3/registerUser", "api.Login/register_v3");//v3版用户注册
Route::post("api/v4/registerUser", "api.Login/register_v4");//v4版用户注册
Route::get("api/v1/resetPasswordCode", "api.Login/get_reset_code");//用户重置密码获取验证码
Route::get("api/v2/resetPasswordCode", "api.Login/get_reset_code_v2");//用户重置密码获取验证码v2

Route::post("api/v1/resetPassword", "api.Login/reset_pswd");//用户重置密码
Route::put("api/v2/resetPassword", "api.Login/reset_pswd_v2");//用户重置密码v2接口
Route::get("api/v1/loginVerifyCode", "api.Login/send_login_code");//手机号或者邮箱验证码登录，获取验证码

//第三方登录
Route::get("api/v1/other/registerCode", "api.Login/send_bind_code");//第三方账号绑定手机号或者邮箱号获取验证码
Route::post("api/v1/other/binding", "api.Login/binding_account");//第三方账号绑定手机号或者邮箱号

Route::get("api/v1/changeAccount", "api.User/change_account_code");//用户转移账号获取验证码
Route::post("api/v1/changeAccount", "api.User/change_account");//用户转移账号

Route::put("api/v1/userInfo", "api.User/update");//修改用户信息

Route::post("api/v1/authorizeQrcode", "api.User/authorize_qrcode"); // 授权给二维码登录

// 原始项目未找到该接口
// Route::put("api/v1/loginOther", "api.User/loginByOther");//第三方登录接口

Route::delete("api/v1/userInfo", "api.User/delete");//用户注销

Route::post("api/user/delUserByPass", "api.User/del_by_pswd");  // Google要求的销户平台接口

Route::put("api/v1/userPassword", "api.User/change_pswd");//登录用户修改密码

// 查询设备
Route::get("api/v1/deviceList", "api.Device/all");//查询用户的所有设备信息

// 发送设备迁移验证码
Route::post("api/device/sendTransferCode", "api.Device/send_transfer_code"); // 发送设备迁移验证码
// 检验设备迁移验证码
Route::post("api/device/verifyTransferCode", "api.Device/verify_transfer_code"); // 检验设备迁移验证码
// 设备迁移
Route::post("api/device/transfer", "api.Device/transfer");// 设备迁移

Route::get("api/v1/searchAccount", "api.User/search_account");//搜索用户账号
Route::get("api/v1/queryAccount", "api.User/account_base_info");//搜索用户账号
Route::get("api/v1/devicePassword", "api.User/send_device_password");//发送设备临时密码功能
Route::get("api/v2/devicePassword", "api.User/send_device_password_v2");//发送设备临时密码功能v2


Route::put("api/v1/account/bindingOther", "api.User/bind_by_code");//账号绑定第三方账号
Route::put("api/v1/other/unbinding", "api.User/unbind");//账号解绑第三方账号
Route::get("api/v1/other/isBinding", "api.User/get_bind_state");//查询第三方是否被绑定


// 阿里云接口
Route::get("api/v1/getByAccount/:account/:vendor", "api.Aliyun/account_device");//通过用户账号获取设备信息 (设备基础信息)
Route::rule("api/v1/getByDevice", "api.Aliyun/thing_properties");//通过用户账号获取阿里云物属性 (设备详细信息)

// 公共接口
Route::get("api/v1/queryRegion", "api.Common/get_region");//查询区域
Route::rule("api/v1/oauthAlarm", "api.Common/oauth_alarm");//认证服务异常警报

//用户留言
Route::post("api/v1/notesBoard", "api.NotesInfo/add");//上传用户留言
Route::post("api/v2/notesBoard", "api.NotesInfo/add");//上传用户留言v2版本
//设备绑定接口
Route::delete("api/v1/binding", "api.UserDeviceBinding/delete");//删除绑定
Route::post("api/v1/binding", "api.UserDeviceBinding/bind");//绑定设备
Route::put("api/v1/binding", "api.UserDeviceBinding/change_bind_info");//修改设备绑定信息
Route::get("api/v1/bindingUser", "api.UserDeviceBinding/get_user");//获取设备被绑定人信息
Route::get("api/v2/bindingUser", "api.UserDeviceBinding/get_user_v2");//获取设备被绑定人信息(v2版)
Route::get("api/v2/deviceBindingUser", "api.UserDeviceBinding/is_bind");//查询设备是否被绑定(v2版)
Route::delete("api/v1/unbinding", "api.UserDeviceBinding/unbind");//强制解绑设备
Route::delete("api/v2/unbinding", "api.UserDeviceBinding/unbind_v2");//强制解绑设备v2


Route::get("api/v1/deviceBindingUser", "api.UserDeviceBinding/is_bind_simple");//查询设备是否被绑定 

Route::post("api/v1/deviceBaseInfo", "api.DeviceBase/get_simple");// 查询设备基础信息

//设备分享接口
Route::post("api/v1/rule", "api.UserDeviceShare/add_by_user");//用户上传分享
Route::post("api/v1/record", "api.UserDeviceShare/add_by_admin");//管理员上传分享
Route::post("api/v1/getRule", "api.UserDeviceShare/get_rule");//用户获取分享规则
Route::put("api/v1/rule", "api.UserDeviceShare/change_rule");//管理员修改分享规则
Route::delete("api/v1/rule", "api.UserDeviceShare/del");//管理员删除分享规则
Route::delete("api/v2/rule", "api.UserDeviceShare/del_v2");//管理员删除分享规则
Route::get("api/v1/shareCountUser", "api.UserDeviceShare/get_count_info");//用户获取剩余可分享人数
Route::post("api/v1/shareUserInfo", "api.UserDeviceShare/get_share_user_info");//获取被分享者的用户信息
Route::post("api/v1/friendShare", "api.UserDeviceShare/to_share");//主动分享

//设备分组
Route::put("api/v1/groupDevice", "api.DeviceGroupTable/set");//修改设备分组信息
Route::post("api/v1/groupDevice", "api.DeviceGroupTable/list");//批量查询设备分组信息
Route::delete("api/v1/groupDevice", "api.DeviceGroupTable/del");//删除分组

//私有服务器系统通知推送
Route::get("api/v1/serverNotify", "api.SendNoticeTable/all");//APP获取私有服务器系统通知
Route::get("api/v2/serverNotify", "api.SendNoticeTable/all_v2");//APP获取私有服务器系统通知（v2.接口）

//APP版本控制
Route::get("api/v1/version", "api.VersionInfo/get");//获取APP版本信息
Route::post("api/v1/version", "api.VersionInfo/add");//上传APP版本信息
Route::get("api/v1/message", "api.VersionInfo/all");//获取综合信息
Route::get("api/v2/message", "api.VersionInfo/all_v2");//获取综合信息

//教程视频
Route::get("api/v1/allModuleInfo", "api.TutorialVideo/list_module");//获取指定语言的所有功能模块
Route::get("api/v1/allVideoInfo", "api.TutorialVideo/module_info");//获取指定语言指定模块的教程视频
Route::get("api/v1/searchVideoInfo", "api.TutorialVideo/search_by_title");//搜索指定语言的所有教程视频

//4g模块
Route::post("api/v1/prePackage", "api.Dataflow/get_free");//领取免费流量
Route::get("api/v1/payInfo", "api.AppMchTable/list");//查询支付商户信息

//直连设备信息接口
Route::delete("api/v1/localDevice", "api.LocalDeviceInfo/del");//删除直连设备
Route::post("api/v1/localDevice", "api.LocalDeviceInfo/add");//新增直连设备
Route::put("api/v1/localDevice", "api.LocalDeviceInfo/update");//修改直连设备信息
Route::get("api/v1/localDevice", "api.LocalDeviceInfo/list");//获取直连设备列表

// APP视图
Route::get("api/v1/appView/match", "api.AppView/match");//匹配当前App的模块视图

// 隐私协议
Route::post("api/v1/privacy/lastTime", "api.privacy/last_time");// 隐私协议最后更新时间



// 
Route::get("api/v1/virtualDevice/list", "api.VirtualDevice/list");// 获取用户的自定义设备
Route::post("api/v1/virtualDevice/set", "api.VirtualDevice/set");// 设置用户的自定义设备
Route::post("api/v1/virtualDevice/del", "api.VirtualDevice/del");// 删除用户的自定义设备
Route::post("api/v1/virtualDevice/delSub", "api.VirtualDevice/del_sub");// 删除用户的自定义设备的子设备

// 二维码相关
Route::post("api/v1/qrcode/apply", "api.Qrcode/apply"); // 申请一个二维码
Route::post("api/v1/qrcode/info", "api.Qrcode/info"); // 获取二维码信息




// sim绑定设备信息

Route::post("api/sim/info", "dataflow.sim/info");// sim信息查询
Route::post("api/sim/bindUpdate", "dataflow.sim/bind_update");// sim 设备绑定细信息修改
Route::post("api/sim/makeRelation", "dataflow.sim/make_relation");// sim 映射设备

// mq回调
Route::post("api/mq/callback", "api.Mq/callback");// Mq回调统一处理 转命令行异步处理
Route::post("api/mq/callbackDirect", "api.Mq/callback_direct");// Mq回调 直接处理

// amqp 回调
Route::post("api/amqp/callback", "api.amqp/callback"); // amqp 回调

// mqtt绑定消息修改
Route::post("api/mqtt/bindChange", "api.Mqtt/bind_change");// Mqtt 设备绑定信息修改的回调


// ===========以下为 app 页面接口=============

// App 信息相关
Route::rule("download/v1/app/:vendor", "appPage.AppInfoTable/get_download");//APP下载链接
Route::get("api/v1/policy/:package/:language", "appPage.AppInfoTable/privacy");//获取隐私协议
Route::get("api/v2/privacy/:package/:language", "appPage.AppInfoTable/privacy");//获取隐私协议v2版
Route::get("api/v3/privacy/:package/:language", "appPage.AppInfoTable/privacy");//获取隐私协议v3版
Route::get("api/v2/userAgreement/:package/:language", "appPage.AppInfoTable/user_agreement");//获取用户政策
Route::get("api/v3/userAgreement/:package/:language", "appPage.AppInfoTable/user_agreement");//获取用户政策

//帮助文档
Route::get("api/v1/help/:vendor/:language", "appPage.HelpProblemInfo/doc");//获取帮助文档主页
Route::get("api/v1/problemList/:type", "appPage.HelpProblemInfo/type");//根据类型获取问题列表
Route::get("api/v1/problem/:id", "appPage.HelpProblemInfo/detail");//根据主键获取问题


//4g模块
Route::get("api/v1/flow/:simId", "appPage.Dataflow/detail");//获取4G详情页面



// 以下接口貌似已转移到其他项目
// Route::get("api/v1/flowOrder", "pay/v1.FlowPay/info");//获取订单
// Route::post("api/v1/flowOrder", "pay/v1.FlowPay/add");//生成订单
// Route::post("api/v1/flowPay", "pay/v1.FlowPay/pay");//订单支付
// Route::get("api/v1/flowPayNotify", "pay/v1.FlowPay/notify");//支付结果通知


// ===========================web 页接口========================

// web页

// 后台登录
Route::get("web/v2/account/login", "web.Login/login");//
// 管理员相关
Route::get("web/v2/account/managerInfo/upgrade", "web.AdminAccount/user_info"); //    管理员最新信息
Route::get("web/v2/account/managerInfo", "web.AdminAccount/list");              //    管理员列表
Route::post("web/v2/account/managerInfo", "web.AdminAccount/add");              //    新增管理员
Route::put("web/v2/account/managerInfo", "web.AdminAccount/edit");              //    修改管理员
Route::delete("web/v2/account/managerInfo", "web.AdminAccount/del");            //    删除管理员
Route::put("web/v2/account/managerInfo/password", "web.AdminAccount/change_password");//    管理员修改密码
Route::get("web/v2/account/managerInfo/roleInfo", "web.AdminPathinfo/get");      //    获取管理员权限
Route::put("web/v2/account/managerInfo/roleInfo", "web.AdminPathinfo/set");      //    设置管理员权限



Route::get("web/v2/account/routeInfo", "web.AdminPathinfo/list");              //  路由列表
Route::post("web/v2/account/routeInfo", "web.AdminPathinfo/add");              //    新增路由
Route::put("web/v2/account/routeInfo", "web.AdminPathinfo/edit");              //    修改路由
Route::delete("web/v2/account/routeInfo", "web.AdminPathinfo/del");            //    删除路由

Route::get("web/v2/account/routeInfo/parentInfo", "web.AdminPathinfo/get_all_path");      // 获取所有路由


Route::get("web/v2/account/appInfo/vendorList", "web.AppInfoTable/list_vendor");//获取客户标识集合
Route::post("web/v2/account/appInfo", "web.AppInfoTable/add");//新增包
Route::put("web/v2/account/appInfo", "web.AppInfoTable/edit");//修改包
Route::delete("web/v2/account/appInfo", "web.AppInfoTable/del");//删除包
Route::get("web/v2/account/appInfo", "web.AppInfoTable/list");//获取列表

Route::get("web/v2/account/appInfo/all", "web.AppInfoTable/list_package");//获取包名信息

Route::get("web/v2/account/appInfo/getByVendor", "web.AppInfoTable/get_useful_app"); //获取包名信息
Route::get("web/v2/account/appInfo/otherInfo", "web.AppInfoTable/get_client_mch"); //获取三方绑定和支付商户信息
Route::put("web/v2/account/appInfo/otherInfo", "web.AppInfoTable/set_client_mch");//设置三方绑定和支付商户信息

Route::post("web/v2/account/appUpgrade", "web.VersionInfo/add");//新增版本
Route::put("web/v2/account/appUpgrade", "web.VersionInfo/edit");//修改版本
Route::delete("web/v2/account/appUpgrade", "web.VersionInfo/del");//删除版本
Route::get("web/v2/account/appUpgrade", "web.VersionInfo/list");//获取列表

Route::put("web/v2/account/userInfo", "web.UserInfo/edit");//修改地区
Route::get("web/v2/account/userInfo", "web.UserInfo/list");//获取列表
Route::get("web/v2/account/userInfo/search", "web.UserInfo/list");
Route::get("web/v2/account/userInfo/deviceInfo", "web.UserInfo/device_info");//用户关联的设备信息

Route::get("web/v2/account/main", "web.UserInfo/data_board"); //数据看板

Route::get("web/v2/account/userNotiy", "web.NotesInfo/list");//用户留言 列表
Route::delete("web/v2/account/userNotiy", "web.NotesInfo/del");//用户留言 删除

Route::get("web/v2/account/deviceInfo/serach", "web.DeviceInfoTable/list");// 设备信息列表搜索
Route::get("web/v2/account/deviceInfo", "web.DeviceInfoTable/list");// 设备信息列表搜索
Route::get("web/v2/account/shareInfo/device", "web.DeviceInfoTable/get_share_binding");//获取设备分享和绑定详情

Route::get("web/v2/account/deviceBinding/search", "web.UserDeviceBinding/list");//设备绑定信息列表搜索
Route::get("web/v2/account/deviceBinding", "web.UserDeviceBinding/list");//设备绑定信息列表搜索

Route::get("web/v2/account/deviceShare/search", "web.UserDeviceShare/list");//搜索分页获取设备分享信息
Route::get("web/v2/account/deviceShare", "web.UserDeviceShare/list");//分页获取设备分享信息
Route::get("web/v2/account/deviceShare/deviceInfo", "web.UserDeviceShare/detail");//获取设备分享详情

Route::post("web/v2/account/systemNotiy", "web.SendNoticeTable/add");//新增系统通知
Route::put("web/v2/account/systemNotiy", "web.SendNoticeTable/edit");//修改系统通知
Route::delete("web/v2/account/systemNotiy", "web.SendNoticeTable/del");//删除系统通知
Route::get("web/v2/account/systemNotiy", "web.SendNoticeTable/list");//获取系统通知列表

Route::post("web/v2/account/mchInfo", "web.MerchantInfoTable/add");//新增支付商户
Route::put("web/v2/account/mchInfo", "web.MerchantInfoTable/edit");//修改支付商户
Route::delete("web/v2/account/mchInfo", "web.MerchantInfoTable/del");//删除支付商户
Route::get("web/v2/account/mchInfo", "web.MerchantInfoTable/list");//获取支付商户列表
Route::get("web/v2/account/mchInfo/all", "web.MerchantInfoTable/simple_all");//


Route::post("web/v2/account/otherClientInfo", "web.OtherClientTable/add");//新增三方授权
Route::put("web/v2/account/otherClientInfo", "web.OtherClientTable/edit");//修改三方授权
Route::delete("web/v2/account/otherClientInfo", "web.OtherClientTable/del");//删除三方授权
Route::get("web/v2/account/otherClientInfo", "web.OtherClientTable/list");//获取三方授权列表
Route::get("web/v2/account/otherClientInfo/all", "web.OtherClientTable/simple_all");//

Route::post("web/v2/account/projectInfo", "web.ProjectInfo/add");//新增项目
Route::put("web/v2/account/projectInfo", "web.ProjectInfo/edit");//修改项目
Route::delete("web/v2/account/projectInfo", "web.ProjectInfo/del");//删除项目
Route::get("web/v2/account/projectInfo", "web.ProjectInfo/list");//获取项目列表


Route::post("web/v2/account/helpInfo", "web.HelpProblemInfo/add");//新增帮助信息
Route::put("web/v2/account/helpInfo", "web.HelpProblemInfo/edit");//修改帮助信息
Route::delete("web/v2/account/helpInfo", "web.HelpProblemInfo/del");//删除帮助信息
Route::get("web/v2/account/helpInfo", "web.HelpProblemInfo/list");//获取帮助信息列表
Route::get("web/v2/account/helpInfo/typeList", "web.HelpProblemInfo/type_list");//获取所有帮助类型

Route::post("web/v2/account/languageInfo", "web.LanguageType/add");//新增语言类型
Route::put("web/v2/account/languageInfo", "web.LanguageType/edit");//修改语言类型
Route::delete("web/v2/account/languageInfo", "web.LanguageType/del");//删除语言类型
Route::get("web/v2/account/languageInfo", "web.LanguageType/list");//获取语言类型列表
Route::get("web/v2/account/languageInfo/all", "web.LanguageType/simple_all");//获取所有语言

Route::get("web/v2/account/emailLogInfo", "web.EmailLogTable/list");//邮件发送记录
Route::get("web/v2/account/emailLogInfo/search", "web.EmailLogTable/list");//邮件发送记录

Route::get("web/v2/account/userLoginInfo", "web.ClientLoginTable/list");//登录日志 此功能未实现
Route::get("web/v2/account/userLoginInfo/search", "web.ClientLoginTable/list");//登录日志 此功能未实现

Route::get("web/v2/account/userEditInfo", "web.ClientEditTable/list");//操作日志 此功能未实现
Route::get("web/v2/account/userEditInfo/search", "web.ClientEditTable/list");//操作日志 此功能未实现

Route::post("web/v2/account/moduleInfo", "web.ModuleInfo/add");//新增帮助模块
// Route::put("web/v2/account/moduleInfo", "web.ModuleInfo/edit");//修改帮助模块
Route::delete("web/v2/account/moduleInfo", "web.ModuleInfo/del");//删除帮助模块
Route::get("web/v2/account/moduleInfo", "web.ModuleInfo/list");//获取帮助模块列表
Route::get("web/v2/account/moduleInfo/all", "web.ModuleInfo/get_by_language");//获取所有帮助模块

Route::post("web/v2/account/describeInfo", "web.DescribeInfo/add");//新增多语言语言
Route::put("web/v2/account/describeInfo", "web.DescribeInfo/edit");//修改多语言语言
Route::delete("web/v2/account/describeInfo", "web.DescribeInfo/del");//删除多语言语言
Route::get("web/v2/account/describeInfo", "web.DescribeInfo/list");//获取多语言语言列表

Route::post("web/v2/account/videoInfo", "web.TutorialVideo/add");//新增视频教程
Route::put("web/v2/account/videoInfo", "web.TutorialVideo/edit");//修改视频教程
Route::delete("web/v2/account/videoInfo", "web.TutorialVideo/del");//删除视频教程
Route::get("web/v2/account/videoInfo", "web.TutorialVideo/list");//获取视频教程列表


Route::post("web/v2/account/phoneCode", "web.CountryCode/add");//新增国际区号
Route::put("web/v2/account/phoneCode", "web.CountryCode/edit");//修改国际区号
Route::delete("web/v2/account/phoneCode", "web.CountryCode/del");//删除国际区号
Route::get("web/v2/account/phoneCode", "web.CountryCode/list");//获取国际区号列表

Route::get("web/v2/account/verificationCodeCache", "web.VerifyCodeCache/list");//验证码缓存操作

Route::get("web/v2/account/shareRule", "web.ShareRuleCache/list");//设备分享规则缓存操作

//////////////// 原接口 /////////////////


// //自定义加密验证方案
// Route::rule("api/v1/check", "api/v1.Encryption/check");//验证加密信息是否正确
// Route::rule("api/v1/encode", "api/v1.Encryption/query");//参数加密
// Route::rule("api/v1/testApi", "api/v1.Encryption/testApi");//接口测试




// ===========================boss后台接口========================
Route::post("bossapi/login/password", "bossManager.login/login");//登录

Route::post("bossapi/appView/list", "bossManager.appView/list");//app 视图列表
Route::post("bossapi/appView/detail", "bossManager.appView/detail");//app 视图详情
Route::post("bossapi/appView/edit", "bossManager.appView/edit");//app 视图编辑
Route::post("bossapi/appView/copy", "bossManager.appView/copy");//app 视图复制
Route::post("bossapi/appView/del", "bossManager.appView/del");//app 视图删除
Route::post("bossapi/appView/check", "bossManager.appView/check");//app 视图 匹配检测
Route::post("bossapi/appView/moduleInfo", "bossManager.appView/module_info");//app 可用模块

Route::post("bossapi/userInfo/list", "bossManager.userInfo/list");//用户列表
Route::post("bossapi/userPass/setTmp", "bossManager.userPass/set_tmp");//设置临时密码
Route::post("bossapi/userPass/reset", "bossManager.userPass/reset");//重置密码


Route::post("bossapi/simBindDevice/list", "bossManager.simBindDevice/list");// sim卡绑定sn 列表
Route::post("bossapi/simBindDevice/set", "bossManager.simBindDevice/set");// sim卡绑定sn 设置
Route::post("bossapi/simBindDevice/del", "bossManager.simBindDevice/del");// sim卡绑定sn 删除
Route::post("bossapi/simBindDevice/factory", "bossManager.simBindDevice/factory_list");// sim卡绑定sn 卡商信息
Route::post("bossapi/simBindDevice/bulkUpdate", "bossManager.simBindDevice/bulk_update");// 批量更新  用户导入



Route::post("bossapi/appInfo/simpleAll", "bossManager.appInfo/simple_all");// app信息 列表

Route::post("bossapi/vendor/simpleAll", "bossManager.vendor/simple_all");// 厂商 所有数据列表
Route::post("bossapi/vendor/list", "bossManager.vendor/list");// 厂商 列表
Route::post("bossapi/vendor/set", "bossManager.vendor/set");// 厂商 设置
Route::post("bossapi/vendor/del", "bossManager.vendor/del");// 厂商 删除

Route::post("bossapi/sendConfig/simpleAll", "bossManager.sendConfig/simple_all");// 发送配置 所有数据列表
Route::post("bossapi/sendConfig/list", "bossManager.sendConfig/list");// 发送配置 列表
Route::post("bossapi/sendConfig/set", "bossManager.sendConfig/set");// 发送配置 设置
Route::post("bossapi/sendConfig/del", "bossManager.sendConfig/del");// 发送配置 删除

Route::post("bossapi/sendTemplate/simpleAll", "bossManager.sendTemplate/simple_all");// 发送模版 所有数据列表
Route::post("bossapi/sendTemplate/list", "bossManager.sendTemplate/list");// 发送模版 列表
Route::post("bossapi/sendTemplate/set", "bossManager.sendTemplate/set");// 发送模版 设置
Route::post("bossapi/sendTemplate/del", "bossManager.sendTemplate/del");// 发送模版 删除

Route::post("bossapi/sendTemplateContent/simpleAll", "bossManager.sendTemplateContent/simple_all");// 发送内容模版 所有数据列表
Route::post("bossapi/sendTemplateContent/list", "bossManager.sendTemplateContent/list");// 发送内容模版 列表
Route::post("bossapi/sendTemplateContent/set", "bossManager.sendTemplateContent/set");// 发送内容模版 设置
Route::post("bossapi/sendTemplateContent/del", "bossManager.sendTemplateContent/del");// 发送内容模版 删除

Route::post("bossapi/sendTemplateRelation/list", "bossManager.sendTemplateRelation/list");// 发送关系 列表
Route::post("bossapi/sendTemplateRelation/getByApp", "bossManager.sendTemplateRelation/get_by_app");// 发送关系 根据应用或者厂商获取所有
Route::post("bossapi/sendTemplateRelation/set", "bossManager.sendTemplateRelation/set");// 发送关系 设置
Route::post("bossapi/sendTemplateRelation/del", "bossManager.sendTemplateRelation/del");// 发送关系 删除
Route::post("bossapi/sendTemplateRelation/check", "bossManager.sendTemplateRelation/check");// 获取发送模版详情
Route::post("bossapi/sendTemplateRelation/sendTest", "bossManager.sendTemplateRelation/send_test");// 发送测试

Route::post("bossapi/cache/keyDetail", "bossManager.cache/key_detail");//缓存详情
Route::post("bossapi/cache/keys", "bossManager.cache/keys");//缓存键
Route::post("bossapi/cache/del", "bossManager.cache/del");//缓存键 删除
Route::post("bossapi/cache/hget", "bossManager.cache/hget");//缓存 hash键 域 获取
Route::post("bossapi/cache/hdel", "bossManager.cache/hdel");//缓存 hash键 域 删除

Route::post("bossapi/p2pUpgradeConf/list", "bossManager.p2pUpgradeConf/list");// p2p进程升级配置 列表
Route::post("bossapi/p2pUpgradeConf/set", "bossManager.p2pUpgradeConf/set");// p2p进程升级配置 设置
Route::post("bossapi/p2pUpgradeConf/del", "bossManager.p2pUpgradeConf/del");// p2p进程升级配置 删除
Route::post("bossapi/p2pUpgradeConf/simpleListAll", "bossManager.p2pUpgradeConf/simple_list_all");// p2p进程升级配置 所有列表


Route::post("bossapi/p2pUpgradeSelector/list", "bossManager.p2pUpgradeSelector/list");// p2p进程升级选择 列表
Route::post("bossapi/p2pUpgradeSelector/set", "bossManager.p2pUpgradeSelector/set");// p2p进程升级选择 设置
Route::post("bossapi/p2pUpgradeSelector/del", "bossManager.p2pUpgradeSelector/del");// p2p进程升级选择 删除
Route::post("bossapi/p2pUpgradeSelector/check", "bossManager.p2pUpgradeSelector/check");// p2p进程升级配置 获取测试


Route::post("bossapi/privacy/list", "bossManager.privacy/list");// 隐私协议 列表
Route::post("bossapi/privacy/set", "bossManager.privacy/set");// 隐私协议 设置


Route::get("bossapi/urlConfig/domainTypeList", "bossManager.urlConfig/domain_type_list");// url 配置  域名类型
Route::get("bossapi/urlConfig/clientTypeList", "bossManager.urlConfig/client_type_list");// url 配置  终端类型
Route::get("bossapi/urlConfig/selectorTypeList", "bossManager.urlConfig/selector_type_list");// url 配置  选择器类型

Route::post("bossapi/urlDomain/list", "bossManager.urlDomain/list");// url 域名 列表
Route::post("bossapi/urlDomain/setDefault", "bossManager.urlDomain/set_default");// url 域名 设置默认
Route::post("bossapi/urlDomain/set", "bossManager.urlDomain/set");// url 域名 新增/修改
Route::post("bossapi/urlDomain/del", "bossManager.urlDomain/del");// url 域名 删除


Route::post("bossapi/urlSelector/alloc", "bossManager.urlSelector/alloc");// 通过选择器分配域名信息
Route::post("bossapi/urlSelector/del", "bossManager.urlSelector/del");// 删除选择器和对应的分配信息
Route::post("bossapi/urlSelector/info", "bossManager.urlSelector/info");// 获取所有选择器的分配信息
Route::post("bossapi/urlSelector/checkRelation", "bossManager.urlSelector/check_relation");// 检查下发分配信息


Route::post("bossapi/urlPath/check", "bossManager.urlPath/check");// url 域名键值对 下发验证

Route::post("bossapi/deviceBase/list", "bossManager.deviceBase/list");// 设备列表
Route::post("bossapi/deviceBase/detail", "bossManager.deviceBase/detail");// 设备详情
Route::post("bossapi/deviceBase/async", "bossManager.deviceBase/async");// 设备详情
Route::post("bossapi/deviceBase/set", "bossManager.deviceBase/set");// 设备手动编辑

Route::post("bossapi/toolkitUser/list", "bossManager.toolkitUser/list");// 设备列表
Route::post("bossapi/toolkitUser/set", "bossManager.toolkitUser/set");// 设备手动编辑

Route::post("bossapi/sendCodeHistory/list", "bossManager.sendCodeHistory/list");// 验证码发送记录查询

Route::post("bossapi/tableDataChange/dataInfo", "bossManager.tableDataChange/data_info");// 表的数据增长变化

Route::post("bossapi/aliyunProject/list", "bossManager.aliyunProject/list");// 阿里云项目信息 列表
Route::post("bossapi/aliyunProject/set", "bossManager.aliyunProject/set");// 阿里云项目信息 设置
Route::post("bossapi/aliyunProject/del", "bossManager.aliyunProject/del");// 阿里云项目信息 删除
Route::post("bossapi/aliyunProject/simpleAll", "bossManager.aliyunProject/simple_all");// 阿里云项目信息 所有列表

Route::post("bossapi/aliyunProduct/list", "bossManager.aliyunProduct/list");// 阿里云产品信息 列表
Route::post("bossapi/aliyunProduct/set", "bossManager.aliyunProduct/set");// 阿里云产品信息 设置
Route::post("bossapi/aliyunProduct/del", "bossManager.aliyunProduct/del");// 阿里云产品信息 删除
Route::post("bossapi/aliyunProduct/simpleAll", "bossManager.aliyunProduct/simple_all");// 阿里云产品信息 所有列表

Route::post("bossapi/openApp/list", "bossManager.openApp/list");// 开放应用 列表
Route::post("bossapi/openApp/set", "bossManager.openApp/set");// 开放应用 设置
Route::post("bossapi/openApp/del", "bossManager.openApp/del");// 开放应用 删除
Route::post("bossapi/openApp/resetSecret", "bossManager.openApp/reset_secret");// 开放应用 重置app_secret
Route::post("bossapi/openApp/simpleAll", "bossManager.openApp/simple_all");// 阿里云产品信息 所有列表

Route::post("bossapi/aliyunCloudStorage/simpleAll", "bossManager.aliyunCloudStorage/simple_all");// 阿里云云存原始套餐列表
Route::post("bossapi/aliyunCloudStorage/freeAll", "bossManager.aliyunCloudStorage/free_all");// 阿里云云存免费套餐列表

Route::post("bossapi/ossOrder/list", "bossManager.ossOrder/list");// 云存订单 列表
Route::post("bossapi/ossOrder/detail", "bossManager.ossOrder/detail");// 云存订单 详情

Route::post("bossapi/ossProduct/list", "bossManager.ossProduct/list");// 云存商品 列表
Route::post("bossapi/ossProduct/assign", "bossManager.ossProduct/assign");// 云存商品 分配
Route::post("bossapi/ossProduct/assignInfo", "bossManager.ossProduct/assign_info");// 云存商品 分配
Route::post("bossapi/ossProduct/simpleAll", "bossManager.ossProduct/simple_all");// 云存商品 所有列表

// 用户操作记录
Route::post("bossapi/userLog/list", "bossManager.userLog/list"); // 用户操作记录

// 缓存管理
Route::post("bossapi/cache/commonList", "api.CacheManager/common_cache_list"); // 获取公共缓存列表
Route::post("bossapi/cache/dbList", "api.CacheManager/db_cache_list"); // 获取DB缓存列表
Route::post("bossapi/cache/getCommonInfo", "api.CacheManager/get_common_cache_info"); // 获取公共缓存
Route::post("bossapi/cache/getDbInfo", "api.CacheManager/get_db_cache_info"); // 获取DB缓存
Route::post("bossapi/cache/delCommonInfo", "api.CacheManager/del_common_cache_info"); // 删除公共缓存
Route::post("bossapi/cache/delDbInfo", "api.CacheManager/del_db_cache_info"); // 删除DB缓存



// ===========================开放平台接口========================

Route::post("openapi/vendor/info", "open.vendor/info");// 厂商信息

Route::post("openapi/video/all", "open.tutorialVideo/all");// 视频教程所有模块

Route::post("openapi/HelpProblemInfo/hotList", "open.helpProblemInfo/hot_list");// 热门问题
Route::post("openapi/HelpProblemInfo/typeList", "open.helpProblemInfo/type_list");// 问题分类列表
Route::post("openapi/HelpProblemInfo/detail", "open.helpProblemInfo/detail");// 问题详情

Route::post("openapi/login/password", "open.login/login_by_password");// 密码登录


Route::post("openapi/user/base", "open.user/base");// 用户基础信息
Route::post("openapi/user/delete", "open.user/delete");// 用户注销

Route::post("openapi/device/report", "open.device/report");// 设备信息上报  设备端


Route::post("openapi/p2pUpgrade/conf", "open.p2pUpgrade/get_conf");// p2p升级配置获取

Route::post("openapi/ossProduct/list", "open.ossProduct/list");// 云存 套餐列表
Route::post("openapi/ossProduct/getFree", "open.ossProduct/get_free");// 云存 获取免费套餐
Route::post("openapi/ossProduct/buyFree", "open.ossProduct/buy_free");// 云存 领取免费套餐
Route::post("openapi/ossOrder/list", "open.ossOrder/list");// 云存 订单列表
Route::post("openapi/ossOrder/detail", "open.ossOrder/detail");// 云存 订单详情
Route::post("openapi/ossOrder/create", "open.ossOrder/create");// 云存 下单
Route::post("openapi/ossOrder/buy", "open.ossOrder/buy");// 云存 购买
Route::post("openapi/ossOrder/createAndBuy", "open.ossOrder/create_and_buy");// 云存 购买
Route::post("openapi/ossOrder/payedProduct", "open.ossOrder/payed_product");// 云存 获取设备已购套餐列表
Route::post("openapi/ossOrder/isCanBuy", "open.ossOrder/is_can_buy");// 云存 设备对应用户是否可以购买
Route::post("openapi/ossOrder/setState", "open.ossOrder/set_state");// 云存 已购订单套餐的启用和冻结
Route::post("openapi/ossOrder/use", "open.ossOrder/use");// 云存 使某个已购订单套餐立即生效



// ===========================  卡商定制后台 ========================

Route::post("sim_manager_api/login/password", "simManager.login/login");     // 卡商登录
Route::post("sim_manager_api/simManager/list", "simManager.simManager/list");         // 卡商 数据列表
Route::post("sim_manager_api/simManager/set", "simManager.simManager/set");        // 卡商 数据设置
Route::post("sim_manager_api/simManager/del", "simManager.simManager/del");        // 卡商 数据删除
Route::post("sim_manager_api/simManager/bulkUpdate", "simManager.simManager/bulk_update");    // 卡商 数据批量更新


// ===========================  APP小工具 ========================   
Route::post("api/v1/toolkitUser/login", "toolkit.login/login");// APP小工具 用户登录
Route::post("api/v1/toolkitUser/sendUnbindMessage", "toolkit.device/send_unbind_message");// APP小工具 发送解绑消息给设备